
#ifndef __NMEA_H
#define __NMEA_H
#include "Type_def.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
typedef struct
{
    u8 year;
    u8 month;
    u8 date;
    u8 week;
    u8 hour;
    u8 minute;
    u8 second;
    u8 status;
    float cog;
    float km;
    float kn;
    float Height;
    int GPSStatus;
    float HDOP;
    double latitude;
    double longitude;
} GpsData;
BOOL nmeaZDA(char *sen, GpsData *dt);
void parseRMC(const char *rmcSentence, GpsData *dt);
double get_distance(double lat1, double lng1, double lat2, double lng2);
#endif
